<style>
    .div-line{
        display: block;
        margin-right: 15px;
    }
</style>
<form id="edit-form" class="form-line" role="form" data-toggle="validator" method="POST" action="">
    {if $row.order_type eq 3}
    <!--充值-->
    <div class="panel panel-info">
        <div class="panel-heading">
            <h3 class="panel-title">余额收入信息</h3>
        </div>
        <div class="panel-body">
            <div class="div-line">
                <span>订单号:</span>
                <span>{$row.order_num}</span>
            </div>
            <div class="div-line">
                <span>会员ID:</span>
                <span>{$row.user.account}</span>
            </div>
            <div class="div-line">
                <span>余额收入类型:</span>
                <span>{$row.order_type_text}</span>
            </div>
            <div class="div-line">
                <span>收入金额（元）:</span>
                <span>{$row.price}</span>
            </div>
            <div class="div-line">
                <span>交易时间:</span>
                <span>{$row.pay_time|date='Y-m-d H:i:s',###}</span>
            </div>
        </div>
    </div>
    {else}
    <div class="panel panel-info">
        <div class="panel-heading">
            <h3 class="panel-title">订单详情</h3>
        </div>
        {if $row.order_type eq 1}
        <!--团购-->
        <div class="panel-body">
            <div class="div-line">
                <span>订单号:</span>
                <span>{$row.order_num}</span>
            </div>
            <div class="div-line">
                <span>交易方式:</span>
                <span>{$row.pay_type_text}</span>
            </div>
            <div class="div-line">
                <span>交易时间:</span>
                <span>{$row.pay_time|date='Y-m-d H:i:s',###}</span>
            </div>
            <div class="div-line">
                <span>交易类型:</span>
                <span>{$row.order_type_text}</span>
            </div>
            <div class="div-line">
                <span>团购价:</span>
                <span>{$row.total_price}</span>
            </div>
            <div class="div-line">
                <span>积分抵扣:</span>
                <span>{$row.integral}</span>
            </div>
            <div class="div-line">
                <span>优惠券抵扣:</span>
                <span>{$row.coupon_price}</span>
            </div>
            <div class="div-line">
                <span>交易金额:</span>
                <span>{$row.price}</span>
            </div>
            <div class="div-line">
                <span>积分收支:</span>
                <span>{$row.add_integral}</span>
            </div>
            <div class="div-line">
                <span>分润金额:</span>
                {if $row.selearnings}
                <a href="tuan/earningsdetails/index?source={$row['selearnings']['0']['selearningsID']}" class="label label-success addtabsit" title="查看分润">{$row.selearnings_fee}</a>
                {else}
                {$row.selearnings_fee}
                {/if}
            </div>

            <div class="div-line">
                <span>消费时间:</span>
                {empty name="row.update_time"}
                <span>未消费</span>
                {else /}
                <span>{$row.update_time|date='Y-m-d H:i:s',###}</span>
                {/empty}
            </div>
        </div>
        {elseif $row.order_type eq 2}
        <!--优惠买单-->
        <div class="panel-body">
            <div class="div-line">
                <span>订单号:</span>
                <span>{$row.order_num}</span>
            </div>
            <div class="div-line">
                <span>交易方式:</span>
                <span>{$row.pay_type_text}</span>
            </div>
            <div class="div-line">
                <span>交易时间:</span>
                <span>{$row.pay_time|date='Y-m-d H:i:s',###}</span>
            </div>
            <div class="div-line">
                <span>交易类型:</span>
                <span>{$row.order_type_text}</span>
            </div>
            <div class="div-line">
                <span>原价:</span>
                <span>{$row.total_price}</span>
            </div>
            <div class="div-line">
                <span>减免价（{$row.discount_text}）:</span>
                <span>{$row.discount}</span>
            </div>
            <div class="div-line">
                <span>交易金额:</span>
                <span>{$row.price}</span>
            </div>
            <div class="div-line">
                <span>积分收支:</span>
                <span>{$row.add_integral}</span>
            </div>
            <div class="div-line">
                <span>分润金额:</span>
                {if $row.selearnings}
                <a href="tuan/earningsdetails/index?source={$row['selearnings']['0']['selearningsID']}" class="label label-success addtabsit" title="查看分润">{$row.selearnings_fee}</a>
                {else}
                {$row.selearnings_fee}
                {/if}
            </div>
        </div>
        {/if}
    </div>
    <div class="panel panel-info">
        <div class="panel-heading">商家信息</div>
        <div class="panel-body">
            <div class="div-line">
                <span>商家名称:</span>
                <span>{$row.shop.shop_name}</span>
            </div>
            <div class="div-line">
                <span>商家ID:</span>
                <span>{$row.shop.user_info.account}</span>
            </div>
            <div class="div-line">
                <span>注册手机号:</span>
                <span>{$row.shop.user_info.phone}</span>
            </div>
            <div class="div-line">
                <span>归属地区:</span>
                <span>{$row.shop.local_name}</span>
            </div>
            <div class="div-line">
                <span>服务税点(%):</span>
                <span>{$row.rate}</span>
            </div>

        </div>
    </div>
    {if !empty($row.user.phone)}
    <div class="panel panel-info">
        <div class="panel-heading">
            <h3 class="panel-title">会员信息</h3>
        </div>
        <div class="panel-body">
            <div class="div-line">
                <span>会员昵称:</span>
                <span>{$row.user.nickname}</span>
            </div>
            <div class="div-line">
                <span>会员ID:</span>
                <span>{$row.user.account}</span>
            </div>
            <div class="div-line">
                <span>注册手机号:</span>
                <span>{$row.user.phone}</span>
            </div>
        </div>
    </div>
    {/if}

    {/if}
    <div></div>
</form>

